package com.gyl.controller;

import com.gyl.domain.PageListRes;
import com.gyl.domain.QueryVo;
import com.gyl.service.EmployeeService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;


@Controller
public class EmployeeController {
    @Autowired
    private EmployeeService employeeService;

    @RequestMapping("/employee")
    public String employees(){
        return "employee";
    }

   @RequestMapping("/employeeList")
   @ResponseBody
    public PageListRes getAllEmployee(QueryVo vo){
       System.out.println("employeeList-------------------------------控制层");
       return employeeService.getAllEmployee(vo);
   };

}
